package com.itcast.springbootcondition.condition;

import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;

import java.util.concurrent.locks.Condition;

public class ClassCondition implements org.springframework.context.annotation.Condition{
    @Override
    public boolean matches(ConditionContext conditionContext, AnnotatedTypeMetadata annotatedTypeMetadata) {
        //当为false,将不会创建bean
        return true;
    }
}
